<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<div id="i1">123</div>
<script type="text/javascript" src="jquery-2.1.4.js"></script>
<script type="text/javascript">
    $(function(){
        $('#i1').text('456');
    });
</script>
</body>
</html>